package com.jinghua.treatment.mapper;

import com.jinghua.treatment.entity.SysInquiryAnswersSub;
import com.jinghua.treatment.entity.SysInquiryAnswersSubExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysInquiryAnswersSubMapper {
    int countByExample(SysInquiryAnswersSubExample example);

    int deleteByExample(SysInquiryAnswersSubExample example);

    int deleteByPrimaryKey(Integer uuid);

    int insert(SysInquiryAnswersSub record);

    int insertSelective(SysInquiryAnswersSub record);

    List<SysInquiryAnswersSub> selectByExample(SysInquiryAnswersSubExample example);

    /**
     * 获取当前医生的问诊单子级记录
     * @param doctorId  医生编号
     * @return
     */
    List<SysInquiryAnswersSub> selectByDoctorId(@Param("doctorId") Integer doctorId);

    SysInquiryAnswersSub selectByPrimaryKey(Integer uuid);

    int updateByExampleSelective(@Param("record") SysInquiryAnswersSub record, @Param("example") SysInquiryAnswersSubExample example);

    int updateByExample(@Param("record") SysInquiryAnswersSub record, @Param("example") SysInquiryAnswersSubExample example);

    int updateByPrimaryKeySelective(SysInquiryAnswersSub record);

    int updateByPrimaryKey(SysInquiryAnswersSub record);
}